package com.itc.bi.utils;

/**
 * @program: itc-airport-cloud
 * @description: 系统工具
 * @author: songxiude
 * @create: 2024-07-02 16:25
 **/
public class BiSystemUtil {

    public static String getCurrentClasspath(){
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        String currentClasspath = classLoader.getResource("").getPath();
        // 当前操作系统
        String osName = System.getProperty("os.name");
        if (osName.startsWith("Win")) {
            // 删除path中最前面的/
            currentClasspath = currentClasspath.substring(1, currentClasspath.length()-1);
        }
        return currentClasspath;
    }


}
